package qf.common.security.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import qf.common.core.web.vo.AjaxResult;
import qf.common.security.configure.SecurityFeignConfig;


// 服务提供者的服务名称
@FeignClient(value = "qf-module-system",path = "/system" ,contextId = "security",configuration = SecurityFeignConfig.class)
@Component
public interface SecuritySysUserService {

    @RequestMapping(value = "/login",method = RequestMethod.GET)
    AjaxResult loginUserByUserNameAndPassowrd(@RequestParam(value = "userName") String userName,
                                           @RequestParam(value = "password") String password);

    @RequestMapping(value = "/oauth",method = RequestMethod.GET)
    AjaxResult loginUserByBusiNoAndSecretkey(@RequestParam(value = "busiNo") String busiNo,
                                          @RequestParam(value = "secretKey") String secretKey);

}

